<?php
	$xtpl_main->assign ( "page_title", "Changepass" );
	//--
	if(isset($_POST['frmAction']) && $_POST['frmAction'] == 'doChange'){
	$resultChange = mysql_query("SELECT member_password FROM member WHERE member_password = '".md5($_POST['password'])."'");
		if(mysql_num_rows($resultChange) >0){
			mysql_query("UPDATE member SET member_password = '".md5($_POST['n_password'])."' WHERE member_id = '".$_SESSION['member_id']."'");
			$xtpl->parse('center.True');
		}
		else {
			$xtpl->parse('center.False');
		}
	}
?>
			
				